#ifndef W25Q64_H
#define W25Q64_H

#include "stm32f1xx_hal.h"
#include "mySPI.h"
void W25Q64_Init(void);
void W25Q64_ReadID(uint8_t *MID, uint16_t *DID);
void W25Q64_PageProgram(uint32_t Address, uint8_t *DataArray, uint16_t Count);
void W25Q64_SectorErase(uint32_t Address);
void W25Q64_ReadData(uint32_t Address, uint8_t *DataArray, uint32_t Count);
void W25Q64_WriteData(uint8_t Block, uint8_t Sector, uint8_t *DataArray, uint16_t Count);
void W25Q64_BlockSectorErase(uint8_t Block, uint8_t Sector);
void W25Q64_ReadBlockSectorData(uint8_t Block, uint8_t Sector, uint8_t *DataArraym, uint32_t Count);
void W25Q64_WriteData32Bite(uint8_t Block, uint8_t Sector, uint32_t *DataArray, uint16_t Count);
void W25Q64_ReadBlockSectorData32Bite(uint8_t Block, uint8_t Sector, uint32_t *DataArraym, uint32_t Count);
#endif
